/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ac.pbp.core.exception;

/**
 *
 * @author Kim
 */
public class ServiceException extends MyException {
    public FailActionType action = FailActionType.ADD;

    private static final long serialVersionUID = 1335428595967821420L;

    public ServiceException() {
            super("Service process fail");
    }

    public ServiceException(String message) {
            super(message);
    }

    public ServiceException(Throwable cause) {
            super(cause);
    }

    public ServiceException(String message, Throwable cause) {
            super(message, cause);
    }

    public ServiceException(FailActionType type, String message, Throwable cause) {
            super(message, cause);
            setType(type);
    }

    protected void setType(FailActionType type) {
            if (type != null) {
                    this.action = type;
            }
    }
}
